package nancal.mp.db.mongo.entity.dev

import nbcp.base.db.IdName
import nbcp.base.db.annotation.Cn
import nbcp.base.db.annotation.DbEntityGroup
import nbcp.base.model.BaseMarkEntity
import org.springframework.data.mongodb.core.mapping.Document

@Document
@DbEntityGroup("dev")
@Cn("Api全局拦截器")
open class ApiInterceptor(
    @Cn("名称")
    var name: String = "",
    var globalHeaders: Map<String, String> = mapOf(),
    @Cn("最初拦截器")
    var firstScript: String = "",
    @Cn("请求拦截器")
    var requestScript: String = "",
    @Cn("响应拦截器")
    var responseScript: String = "",

    var isActive: Boolean = false,

    @Cn("备注")
    var remark: String = "",
    var createBy:IdName = IdName(),
    var updateBy:IdName = IdName()
) : BaseMarkEntity() {

}